package com.noahplat.person.mapper;

import com.noahplat.person.pojo.Person;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/**
 * @InterfaceName: PersonMapper
 * @Description: 人员mapper
 * @Author 李景星
 * @Date 2021/3/5
 * @Version 1.0
 */
public interface PersonMapper extends Mapper<Person> {
    /**
     * 根据账户ID更新人员所属账套
     * @param acctid
     * @param uid
     * @return
     */
    @Update("update tb_person set acctid = #{acctid} where userid = #{uid}")
    int updateAcctidByUid(@Param("acctid") Long acctid, @Param("uid") Long uid);
}
